import request from '@/utils/request'

// 查询教师列表
export function listOss(query) {
  return request({
    url: '/aliyunoss/oss/list',
    method: 'get',
    params: query
  })
}

// 删除课程
export function deleteOss(ossIds) {
  return request({
    url: '/aliyunoss/oss/' + ossIds,
    method: 'delete'
  })
}

// 修改课程
export function updateOss(data) {
  return request({
    url: '/aliyunoss/oss',
    method: 'put',
    data: data
  })
}

// 新增用户
export function addOss(data) {
  return request({
    url: '/aliyunoss/oss',
    method: 'post',
    data: data
  })
}
